Expressions and Operators (Cont.)
Bitwise operators
Bitwise exlusive OR; compares two bits and generates a 1 result if the bits are complementary, otherwise it returns 0
x ^ y
Bitwise inclusive OR; compares two bits and generates a 1 result if either or bot bits are 1, otherwise it returns 0.
x | y
Bitwise AND; compares two bits and generates a 1 result if both bits are 1, otherwise it returns 0.
x & y
Meaning
Operator